Skip to main content

mockseries.utils.writers

write_csv#

write_csv(time_points: Collection[datetime], timeseries: Union[np.ndarray, List[np.ndarray]], filepath: str, sep: str = ";", datetime_format: str = "%s", float_format: str = "%s") -> None

Writes timeseries to a csv file.

Arguments:

  • time_points - The timeseries index. A list of datetimes.
  • timeseries - A timeseries or a list of timeseries.
  • filepath - addres
  • sep - Separator to use for the csv-like file.
  • datetime_format - Numpy write format for the timeseries index.
  • float_format - Numpy write format for the timeseries values.